/**
 * 
 */
package com.sci.web.bean;

import java.util.List;



/**
 * @author  BaiFuyou
 * @date: Sep 22, 2011 5:12:33 PM
 * 
 * 左边菜单的显示树
 */
public class Menu {
	private String id;
	private String text;
	private boolean leaf;
	private String iconCls;
	private List<Menu> children;
	private String qtip;

	public Menu() {
	}

	public Menu(String id, String text, boolean leaf, String iconCls,String qtip) {
		this.id = id;
		this.text = text;
		this.leaf = leaf;
		this.iconCls = iconCls;
		this.qtip = qtip;
	}

	@Override
	public String toString() {
		// TODO Auto-generated method stub
		return this.id + "  " + this.text + "  " + this.leaf;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public boolean isLeaf() {
		return leaf;
	}

	public void setLeaf(boolean leaf) {
		this.leaf = leaf;
	}

	public List<Menu> getChildren() {
		return children;
	}

	public void setChildren(List<Menu> children) {
		this.children = children;
	}

	/**
	 * @return the iconCls
	 */
	public String getIconCls() {
		return iconCls;
	}  

	/**
	 * @param iconCls the iconCls to set
	 */
	public void setIconCls(String iconCls) {
		this.iconCls = iconCls;
	}

	/**
	 * @return the qtip
	 */
	public String getQtip() {
		return qtip;
	}

	/**
	 * @param qtip the qtip to set
	 */
	public void setQtip(String qtip) {
		this.qtip = qtip;
	}
}
